Have you installed the pyautogui module in the correct Python environment